import time
import threading



def singing(name):
    print(name)


def dancing(name, age):
    print(name, age)
        
if __name__ == '__main__' :
    
    #创建线程对象，指定线程函数的入口地址，返回线程对象
    t1 = threading.Thread(target=singing, args=("jack",))
    t2 = threading.Thread(target=dancing, kwargs={"name":"william", "age":12})

    #线程启动
    t1.start()
    t2.start()
    
    print(threading.current_thread())